package cn.zf233.feign;

import cn.zf233.entity.Department;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created by zf233 on 2021/9/29
 */
@FeignClient(value = "DEPARTMENTS", path = "department")
public interface DepartmentClient {

    @GetMapping("{id}")
    ResponseEntity<Department> queryById(@PathVariable("id") Integer id);

}
